Retrieve the current state of modifiable properties of the forest identified by
{id|name}
.
URL Parameters | |
---|---|
format | The format of the returned data. Can be
html , json or xml (default). If present, the
format parameter overrides the Accept header. |
Upon success, MarkLogic Server returns status code 200 (OK), and the data in the response body contains the requested information.
manage-user
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage
The structure of the output returned from this REST API is as follows:
database
forest-name
enabled
host
data-directory
large-data-directory
fast-data-directory
fast-data-max-size
updates-allowed
availability
rebalancer-enable
range
This is a complex structure with the following children:
lower-bound
upper-bound
partition-number
failover-enable
failover-hosts
This is a complex structure with the following children:
failover-host
forest-backups
This is a complex structure with the following children:
forest-backup
This is a complex structure with the following children:
backup-id
backup-enabled
backup-directory
backup-type
backup-period
backup-month-day
backup-days
This is a complex structure with the following children:
backup-day
backup-start-date
backup-start-time
backup-timestamp
forest-replicas
This is a complex structure with the following children:
forest-replica
This is a complex structure with the following children:
host
replica-name
data-directory
large-data-directory
fast-data-directory
database-replication
This is a complex structure with the following children:
foreign-replicas
This is a complex structure with the following children:
foreign-replica
This is a complex structure with the following children:
foreign-cluster-name
foreign-database-name
foreign-forest-name
foreign-master
This is a complex structure with the following children:
foreign-cluster-name
foreign-database-name
foreign-forest-name
$ curl --anyauth --user user:password -X GET -i \ -H "Accept: application/xml" \ http://localhost:8002/manage/v2/forests/example/properties ==> Retrieve the state of the modifiable properties of the forest named "example". MarkLogic Server responds with output similar to the following: HTTP/1.1 200 OK Content-type: application/xml Cache-Control: no-cache Expires: -1 Server: MarkLogic Content-Length: 436 Connection: Keep-Alive Keep-Alive: timeout=5 <forest-properties xsi:schemaLocation="http://marklogic.com/manage manage.xsd" xmlns="http://marklogic.com/manage" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <enabled>true</enabled> <updates-allowed>all</updates-allowed> <availability>online</availability> <rebalancer-enable>true</rebalancer-enable> <range/> <failover-enable>true</failover-enable> <failover-hosts/> <forest-replicas/> </forest-properties> The corresponding JSON output is similar to the following: { "enabled": true, "updates-allowed": "all", "availability": "online", "rebalancer-enable": true, "range": null, "failover-enable": true, "failover-host": null, "forest-replica": null }